//
//  HMComposeButton.swift
//  Weibo
//
//  Created by ZhuDong on 16/5/28.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit
private let imageHeight:CGFloat = 80
class HMComposeButton: UIButton {
    var composeItem: HMComposeItem?
    override func titleRectForContentRect(contentRect: CGRect) -> CGRect {
        //
        return CGRect(x: 0, y: imageHeight, width: self.bounds.size.width, height: self.bounds.size.height - imageHeight)
    }
    override func imageRectForContentRect(contentRect: CGRect) -> CGRect {
        //
        return CGRect(x: 0, y: 0, width: self.bounds.size.width, height: imageHeight)
    }
}
